package com.xw.strategy;

/**
 * @author: xw
 * @create: 2022/9/14 15:07
 * @description:
 */
public class TigerComparator implements Comparator<Tiger>{
    @Override
    public int compare(Tiger o1, Tiger o2) {
        if(o1.power < o2.power){
            return -1;
        }else if(o1.power > o2.power){
            return 1;
        }else{
            return 0;
        }
    }
}
